<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
%>
<html>
<head>
<link href="<%=path%>/css/skin.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function changeImage(){   
	    var img = document.getElementById("imgCode");   
	    // 此处Math.random()只是用来欺骗浏览器图片的地址是改变了的   
	    img.src="<%=path%>/user/vCode.htm?id="+Math.random();   
	}
	function checkForm(){
		var username = document.getElementById("username").value;
		var pwd = document.getElementById("pwd").value;
		var verifyCode = document.getElementById("verifyCode").value;
		if(username == ''){
			alert('用户名不能为空!');
			return false;
		}
		if(pwd == ''){
			alert('密码不能为空!');
			return false;
		}
		if(verifyCode == ''){
			alert('验证码不能为空!');
			return false;
		}
	}
</script>
</head>
<body>
	<table width="100%" height="166" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td height="42" valign="top">
				<table width="100%" height="42" border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
					<tr>
						<td width="1%" height="21">&nbsp;</td>
						<td height="42">&nbsp;</td>
						<td width="17%">&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="login_bg">
					<tr>
						<td width="49%" align="right"><table width="91%" height="532"
								border="0" cellpadding="0" cellspacing="0" class="login_bg2">
								<tr>
									<td height="138" valign="top"><table width="89%"
											height="427" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td height="149">&nbsp;</td>
											</tr>
											<tr>
												<td height="80" align="right" valign="top"><img
													src="<%=path %>/images/logo.png" width="279" height="68"></td>
											</tr>
											<tr>
												<td height="198" align="right" valign="top"><table
														width="100%" border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="35%">&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>1-
																	地区商家信息网门户站建立的首选方案...</p></td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>2-
																	一站通式的整合方式，方便用户使用...</p></td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>3-
																	强大的后台系统，管理内容易如反掌...</p></td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td width="30%" height="40"><img
																src="<%=path %>/images/icon-demo.gif" width="16" height="16"><a
																href="http://www.865171.cn" target="_blank"
																class="left_txt3"> 使用说明</a></td>
															<td width="35%"><img
																src="<%=path %>/images/icon-login-seaver.gif" width="16"
																height="16"><a href="http://www.865171.cn"
																class="left_txt3"> 在线客服</a></td>
														</tr>
													</table></td>
											</tr>
										</table></td>
								</tr>

							</table></td>
						<td width="1%">&nbsp;</td>
						<td width="50%" valign="bottom"><table width="100%"
								height="59" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="4%">&nbsp;</td>
									<td width="96%" height="38"><span class="login_txt_bt">登陆系统</span></td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td height="21"><table cellSpacing="0" cellPadding="0"
											width="100%" border="0" id="table211" height="328">
											<tr>
												<td height="164" colspan="2" align="middle">
												<form action="<%=path%>/user/login.htm" method="post" onsubmit="javascript:return checkForm();">
														<table cellSpacing="0" cellPadding="0" width="100%" border="0" height="143" id="table212">
															<tr>
																<td colspan="2">
																	<font color="red">
																		${actionMessages[0]}
																	</font>
																</td>
															</tr>
															<tr>
																<td width="13%" height="38" class="top_hui_text"><span
																	class="login_txt">用户名：&nbsp;&nbsp; </span></td>
																<td height="38" colspan="2" class="top_hui_text">
																<input id="username" type="text" name="user.username" class="editbox4" value="" size="20"></input>
																</td>
															</tr>
															<tr>
																<td width="13%" height="35" class="top_hui_text"><span
																	class="login_txt"> 密 码： &nbsp;&nbsp; </span></td>
																<td height="35" colspan="2" class="top_hui_text">
																<input id="pwd" class="editbox4" type="password" size="20" name="user.password"></input></td>
															</tr>
															<tr>
																<td width="13%" height="35"><span class="login_txt">验证码：</span></td>
																<td id="codeImg" height="35" colspan="2" class="top_hui_text">
																	<input id="verifyCode" name="verifyCode" type="text" maxlength="4"></input>
																	<img id="imgCode" src="<%=path%>/user/vCode.htm" onclick="changeImage()" alt="点击刷新验证码"></img>
																</td>
															</tr>
															<tr>
																<td height="35">&nbsp;</td>
																<td width="20%" height="35">
																<input name="submit" type="submit" class="button" id="submit" value="登 陆">
																</td>
																<td width="67%" class="top_hui_text"></td>
															</tr>
														</table>
														<br>
													</form>
													</td>
											</tr>
											<tr>
												<td width="433" height="164" align="right" valign="bottom"><img
													src="<%=path %>/images/login-wel.gif" width="242" height="138"></td>
												<td width="57" align="right" valign="bottom">&nbsp;</td>
											</tr>
										</table></td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
						<tr>
							<td align="center">
								<span class="login-buttom-txt">Copyright &copy; 2009-2012 song</span>
							</td>
						</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>